<?php
/**
 * Created by ThinkPHP5.0.22.
 * User: 小涛.
 * Date: 2018/12/28.
 * Time: 23:36.
 */

namespace app\admin\model;

use think\Model;
use think\Request;

/**
 * Class ShopAddress 发货地址设置
 * @package app\admin\model
 */
class ShopAddress extends Model
{
    //列表
    public static function listShopAddress($listRow = 16){
        return self::order("id desc")
            -> paginate($listRow,false,[
                "query" => Request::instance() -> param()
            ]);
    }

    //根据已知条件查询是否存在
    public static function IsShopAddress($data = []){
        return self::where($data)
            -> find();
    }
}